<template>
  <div class="borderBox">
    <el-row>
      <el-col :span="18" :offset="3">
        <el-table :data="datas" style="width: 100%">
          <el-table-column type="index" width="50"></el-table-column>
          <el-table-column prop="name" label="属性名称"></el-table-column>
          <el-table-column prop="desc" label="描述"></el-table-column>
          <el-table-column prop="type" label="类型"></el-table-column>
          <el-table-column prop="remark" label="备注"></el-table-column>
        </el-table>
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="18" :offset="3">
        <el-card class="box-card">
          <div slot="header" class="card-header">dve-decoration-1</div>
          <dve-decoration-1></dve-decoration-1>
        </el-card>
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="18" :offset="3">
        <el-card class="box-card">
          <div slot="header" class="card-header">dve-decoration-2</div>
          <dve-decoration-2></dve-decoration-2>
        </el-card>
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="18" :offset="3">
        <el-card class="box-card">
          <div slot="header" class="card-header">dve-decoration-2(reverse)</div>
          <dve-decoration-2 is-reverse="true" height="200px"></dve-decoration-2>
        </el-card>
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="18" :offset="3">
        <el-card class="box-card">
          <div slot="header" class="card-header">dve-decoration-3</div>
          <dve-decoration-3></dve-decoration-3>
        </el-card>
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="18" :offset="3">
        <el-card class="box-card">
          <div slot="header" class="card-header">dve-decoration-4</div>
          <dve-decoration-4 height="200px"></dve-decoration-4>
        </el-card>
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="18" :offset="3">
        <el-card class="box-card">
          <div slot="header" class="card-header">dve-decoration-4(reverse)</div>
          <dve-decoration-4 is-reverse="true"></dve-decoration-4>
        </el-card>
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="18" :offset="3">
        <el-card class="box-card">
          <div slot="header" class="card-header">dve-decoration-5</div>
          <dve-decoration-5 width="500px">
            <span style="color:#7acaec;font-size:20px">测试标题</span>
          </dve-decoration-5>
        </el-card>
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="18" :offset="3">
        <el-card class="box-card">
          <div slot="header" class="card-header">dve-decoration-6</div>
          <dve-decoration-6></dve-decoration-6>
        </el-card>
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="18" :offset="3">
        <el-card class="box-card">
          <div slot="header" class="card-header">dve-decoration-7</div>
          <dve-decoration-7 style="color:#fff">测试标题</dve-decoration-7>
        </el-card>
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="18" :offset="3">
        <el-card class="box-card">
          <div slot="header" class="card-header">dve-decoration-8</div>
          <dve-decoration-8 width="600px" title="测试标题"></dve-decoration-8>
        </el-card>
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="18" :offset="3">
        <el-card class="box-card">
          <div slot="header" class="card-header">dve-decoration-8(reverse)</div>
          <dve-decoration-8
            width="600px"
            title="测试标题"
            is-reverse="true"
            title-color="#F00"
            title-size="50px"
          ></dve-decoration-8>
        </el-card>
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="18" :offset="3">
        <el-card class="box-card">
          <div slot="header" class="card-header">dve-decoration-9</div>
          <dve-decoration-9 style="color:#fff">80%</dve-decoration-9>
        </el-card>
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="18" :offset="3">
        <el-card class="box-card">
          <div slot="header" class="card-header">dve-decoration-10</div>
          <dve-decoration-10></dve-decoration-10>
        </el-card>
      </el-col>
    </el-row>
    <el-row>
      <el-col :span="18" :offset="3">
        <el-card class="box-card">
          <div slot="header" class="card-header">dve-decoration-11</div>
          <dve-decoration-11 style="color:#fff">测试标题</dve-decoration-11>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  data() {
    return {
      datas: [
        {
          name: "color1",
          desc: "颜色1",
          type: "String",
          remark: ""
        },
        {
          name: "color2",
          desc: "颜色2",
          type: "String",
          remark: ""
        },
        {
          name: "is-reverse",
          desc: "反转",
          type: "String(true|false)",
          remark: "风格2、4、8有效"
        },
        {
          name: "title",
          desc: "标题",
          type: "String",
          remark: "风格8有效"
        },
        {
          name: "title-size",
          desc: "标题字体大小",
          type: "String",
          remark: "风格8有效"
        },
        {
          name: "title-color",
          desc: "标题字体颜色",
          type: "String",
          remark: "风格8有效"
        },
        {
          name: "dur",
          desc: "动画时长",
          type: "String",
          remark: "风格9有效"
        }
      ]
    };
  }
};
</script>

<style >
.borderBox {
  height: 100%;
}
.box-card {
  background-color: #333;
}
.el-card__body {
  background-color: #333;
  text-align: center;
}
.el-col {
  height: 100%;
}
.card-header {
  color: #fff;
  text-align: left;
}
.el-card__header {
  border-bottom: 1px solid #444 !important;
  background-color: #333 !important;
}
</style>